package com.viego.financialrecommendsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.viego.financialrecommendsystem.entity.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    Integer collect(long articleId);

    int addCollect(String userId, String articleId);

    Integer isCollected(Long userId,Long articleId);

    List<String> type();

    int removeCollect(long userId, long articleId);
}
